package seeds

import (
	"public_security/databases"
	"public_security/models"
)

func InitTable() {
	createTable()
	createUser()
	createAbout()
	createArticleType()
	createNav()
	createTabbar()
	createtaburl()
	deleteVideo()
}

func createTable() {
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户'").AutoMigrate(&models.Users{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分类'").AutoMigrate(&models.ArticleType{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章'").AutoMigrate(&models.Article{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='导航'").AutoMigrate(&models.Navigation{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='剪影'").AutoMigrate(&models.Photogram{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='排班'").AutoMigrate(&models.Process{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='奖状'").AutoMigrate(&models.Diploma{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='奖状称号'").AutoMigrate(&models.DiplomaTitle{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='底部导航'").AutoMigrate(&models.Tabbar{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='底部导航分类'").AutoMigrate(&models.TabbarType{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='简介'").AutoMigrate(&models.About{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='中队分类'").AutoMigrate(&models.AddressBookType{})
	databases.DbDefault.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通讯录'").AutoMigrate(&models.AddressBook{})
}

func createUser() {
	databases.DbDefault.FirstOrCreate(&models.Users{Id: 1, Account: "lgr", Password: "BC87DE3FCE16678EE0EFF0D945219A61", Name: "超级管理员"})   //lgr  lgr951023
	databases.DbDefault.FirstOrCreate(&models.Users{Id: 2, Account: "admin", Password: "A66ABB5684C45962D887564F08346E8D", Name: "超级管理员"}) //admin  admin123456
}

func createAbout() {
	databases.DbDefault.FirstOrCreate(&models.About{Id: 1, Image: "", Content: "淳化派出所位于江宁区淳化街道府前路1号，紧邻风光旖旎的梅龙湖。素有“千年古镇”之称的淳化，镇内名胜古迹众多，地势奇特，景色秀美，有着悠久的历史文化。随着近年城市化进程的加速，淳化具备了城市、农村两元属性。淳化派出所辖区面积约为83平方千米，共有7个社区，常住人口3万，流动人口2.4万，房屋出租户3055户。辖区有旅馆14家，桑拿浴室13家，物流寄递单位11家，单位1306家，中学1所，小学2所、幼儿园5所，教堂1所。目前，该所共有民警15人，其中所领导4人，民警11人；淳化、青山、青龙、田园、双岗、吴墅、索墅社区划分为4个社区警务责任区，建有4个社区警务室。目前，在职辅警90人，其中有16人街面调解队伍，18人巡防队伍，是我辖区街面犯罪率压降以及维稳处突事件处置的骨干力量。"})
}

func createNav() {
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 1, Name: "警综平台", Address: "http://tymh.gaj.nkg.js/loginOperate/toUserLogin", Status: 2})
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 2, Name: "行政平台", Address: "http://xzgl.gaj.nkg.js/njga_oa/platform/MainPage/login-for-usb.html", Status: 2})
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 3, Name: "情报平台", Address: "http://10.33.70.181/", Status: 2})
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 4, Name: "智慧搜", Address: "http://10.32.223.77/gwdp2.1/", Status: 2})
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 5, Name: "在逃人员", Address: "http://ztry-zyk.zx.ga/zhyy_zt//pages/xzztry/login.jsp?error=1", Status: 2})
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 6, Name: "法律法规", Address: "http://flfgcx.gat.js/law/home/begin1.cbs", Status: 2})
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 7, Name: "省厅联络", Address: "https://txll.js/app/;x-session-usap=6788B9CCE388295CBBC7B3268084C101?0", Status: 2})
	databases.DbDefault.FirstOrCreate(&models.Navigation{Id: 8, Name: "网上考试", Address: "http://10.33.1.9/exam/", Status: 2})
}

func createArticleType() {
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 1, Name: "头条新闻"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 2, Name: "综合要闻"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 3, Name: "公告栏"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 4, Name: "通知通报"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 5, Name: "执法通报"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 6, Name: "绩效考核"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 7, Name: "基础工作"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 8, Name: "治安管控"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 9, Name: "刑侦动态"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 10, Name: "民意诉求"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 11, Name: "法规速递"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 12, Name: "媒体聚焦"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 13, Name: "上级录用"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 14, Name: "队伍建设"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 15, Name: "学习园地"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 16, Name: "警营文苑"})
	databases.DbDefault.FirstOrCreate(&models.ArticleType{Id: 17, Name: "党风廉政"})

}

func createTabbar() {
	databases.DbDefault.FirstOrCreate(&models.TabbarType{Id: 1, Name: "全国公安网站"})
	databases.DbDefault.FirstOrCreate(&models.TabbarType{Id: 2, Name: "省内公安网站"})
	databases.DbDefault.FirstOrCreate(&models.TabbarType{Id: 3, Name: "全市公安网站"})
	databases.DbDefault.FirstOrCreate(&models.TabbarType{Id: 4, Name: "市局机关网站"})
	databases.DbDefault.FirstOrCreate(&models.TabbarType{Id: 5, Name: "分局机关网站"})
	databases.DbDefault.FirstOrCreate(&models.TabbarType{Id: 6, Name: "派出所网站"})
}

func deleteVideo() {
	databases.DbDefault.Exec("delete from articles where content like '%video-js%';")
	//databases.DbDefault.Exec("delete from articles where title like '%%';")
}

func createtaburl() {
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 1, Name: "公安部", Address: "http://www.ga/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 2, Name: "北京市", Address: "http://www.bj/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 3, Name: "天津市", Address: "http://www.tj/Page/index.html", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 4, Name: "河北省", Address: "http://www.eb/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 5, Name: "山东省", Address: "http://www.sd/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 6, Name: "山西省", Address: "http://www.sx/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 7, Name: "内蒙古", Address: "http://www.nm/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 8, Name: "辽宁省", Address: "http://www.ln/72057594037927936/index.shtml", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 9, Name: "吉林省", Address: "http://www.jl/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 10, Name: "黑龙江省", Address: "http://www.hl/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 11, Name: "上海市", Address: "http://www.sh/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 12, Name: "浙江省", Address: "http://www1.zj/pub/zjsgatnw/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 13, Name: "安徽省", Address: "http://www.ah/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 14, Name: "福建省", Address: "http://www.fj/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 15, Name: "江西省", Address: "http://www.gat.jx/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 16, Name: "河南省", Address: "http://www.en/sy.htm", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 17, Name: "湖北省", Address: "http://www.hb/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 18, Name: "湖南省", Address: "http://www.hn/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 19, Name: "广东省", Address: "http://www.gd/stsy2015/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 20, Name: "广西壮族自治区", Address: "http://www.gx/WWW/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 21, Name: "海南省", Address: "http://www.an/main_new/index.asp", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 22, Name: "重庆市", Address: "http://www.zx.cq/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 23, Name: "四川省", Address: "http://www.sc/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 24, Name: "贵州省", Address: "http://www.gz/index.shtml", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 25, Name: "云南省", Address: "http://www.yn/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 26, Name: "西藏自治区", Address: "http://www.xz/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 27, Name: "陕西省", Address: "http://www.sn:8081/serviceweb/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 28, Name: "甘肃省", Address: "http://www.gs/gatweb/sysIndex!index.do", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 29, Name: "青海省", Address: "http://www.qh/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 30, Name: "宁夏自治区", Address: "http://www.nx/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 31, Name: "新疆自治区", Address: "http://www.xj/", Status: 2, TabbarTypeId: 1})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 32, Name: "新疆建设兵团", Address: "http://www.bt/", Status: 2, TabbarTypeId: 1})

	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 33, Name: "省厅", Address: "http://www.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 34, Name: "无锡市", Address: "http://www.wux.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 35, Name: "徐州市", Address: "http://www.xuz.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 36, Name: "常州市", Address: "http://www.czx.js/yindao.html", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 37, Name: "苏州市", Address: "http://webs.gaj.szh.js/szga/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 38, Name: "南通市", Address: "http://www.ntg.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 39, Name: "连云港", Address: "http://www.lyg.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 40, Name: "淮安市", Address: "http://www.has.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 41, Name: "盐城市", Address: "http://www.yck.js/html/index.html", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 42, Name: "扬州市", Address: "http://www.yzh.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 43, Name: "镇江市", Address: "http://www.zhe.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 44, Name: "泰州市", Address: "http://www.tzs.js/", Status: 2, TabbarTypeId: 2})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 45, Name: "宿迁市", Address: "http://50.120.21.1/sqsgaj/", Status: 2, TabbarTypeId: 2})

	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 50, Name: "南京市局", Address: "http://web.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 51, Name: "江北新区分局", Address: "http://www.jbxq.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 52, Name: "玄武分局", Address: "http://www.xwu.nkg.js/index.html", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 53, Name: "秦淮分局", Address: "http://www.qhu.nkg.js/index.html", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 54, Name: "建邺分局", Address: "http://10.33.123.9/index.php?siteid=12", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 55, Name: "鼓楼分局", Address: "http://www.glo.nkg.js:8081/www/glga/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 56, Name: "栖霞分局", Address: "http://www.qxa.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 57, Name: "雨花台分局", Address: "http://www.yht.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 58, Name: "浦口分局", Address: "http://www.pkq.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 59, Name: "六合分局", Address: "http://www.lhe.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 60, Name: "经济分局", Address: "http://www.jj.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 61, Name: "溧水分局", Address: "http://www.lis.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 62, Name: "高淳分局", Address: "http://www.gch.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 63, Name: "水上分局", Address: "http://www.ss.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 64, Name: "公交分局", Address: "http://www.gj.nkg.js/", Status: 2, TabbarTypeId: 3})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 65, Name: "地铁分局", Address: "http://www.dt.nkg.js/", Status: 2, TabbarTypeId: 3})

	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 70, Name: "政治部", Address: "http://10.33.70.198:8088/potals/index", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 71, Name: "人事处", Address: "http://10.33.1.58:8084/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 72, Name: "宣传处", Address: "http://50.32.3.168:8080/www/njga/gaxc/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 73, Name: "组教处", Address: "http://10.33.1.58:8080/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 74, Name: "训练学校", Address: "http://www.gaxx.nkg.js/gaxx/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 75, Name: "离退休干部处", Address: "http://10.33.1.58:8082/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 76, Name: "工会", Address: "http://10.33.1.9/gh/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 77, Name: "警辅处", Address: "http://50.32.3.168:8080/www/njga/jfc/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 78, Name: "纪委(监察室)", Address: "http://10.33.1.9/jw2011/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 79, Name: "办公室", Address: "http://50.32.3.164/njsgajbgs/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 80, Name: "警务保障部", Address: "http://10.33.168.11:8080/jbb/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 81, Name: "审计处", Address: "http://50.32.3.168:8080/www/njga/gasj/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 82, Name: "科技信息化处", Address: "http://www.xt.nkg.js:18080/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 83, Name: "信访处", Address: "http://10.33.1.44:8080/XFCXXW/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 84, Name: "指挥中心", Address: "http://10.33.112.238:8080/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 85, Name: "督察支队", Address: "http://10.33.1.9:90/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 86, Name: "治安支队", Address: "http://10.33.72.164/index.aspx", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 87, Name: "内保支队", Address: "http://www.nb.nkg.js/nbweb/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 88, Name: "刑警支队", Address: "http://www.xz.nkg.js/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 89, Name: "监管支队", Address: "http://www.jg.nkg.js/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 90, Name: "交警支队", Address: "http://10.33.7.26:88/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 91, Name: "出入境管理支队", Address: "http://www.cr.nkg.js/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 92, Name: "网安支队", Address: "http://www.xa.nkg.js/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 93, Name: "法制支队", Address: "http://10.33.70.231/frontend/web/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 94, Name: "特警支队", Address: "http://www.tj.nkg.js/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 95, Name: "人口管理支队", Address: "http://10.33.1.9:8000/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 96, Name: "经侦支队", Address: "http://www.jz.nkg.js/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 97, Name: "禁毒支队", Address: "http://www.jd.nkg.js/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 98, Name: "警卫处", Address: "http://10.33.1.44:9085/JWC2.0/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 99, Name: "反恐支队", Address: "http://www.fk.nkg.js/index.html", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 100, Name: "消防支队", Address: "http://www.xf.nkg.js:81/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 101, Name: "民意110", Address: "http://10.33.72.129/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 102, Name: "见义勇为", Address: "http://50.32.3.168:8080/www/njga/jyyw/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 103, Name: "关工委", Address: "http://10.33.1.9/ggw/", Status: 2, TabbarTypeId: 4})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 104, Name: "保安公司", Address: "http://www.za.nkg.js/ba/", Status: 2, TabbarTypeId: 4})

	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 221, Name: "指挥室", Address: "http://50.35.1.8:8010/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 222, Name: "政工网", Address: "http://50.35.1.189:8080/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 223, Name: "纪检督察", Address: "http://50.35.1.166/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 224, Name: "警务保障室", Address: "http://50.35.1.8/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 225, Name: "刑警大队", Address: "http://50.35.9.136:8088/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 226, Name: "治安大队", Address: "http://50.35.74.226/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 227, Name: "经侦大队", Address: "http://50.35.74.213/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 228, Name: "国内安全保卫大队", Address: "http://50.35.1.200/default.html", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 229, Name: "特巡警大队", Address: "http://50.35.75.160/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 230, Name: "人口管理大队", Address: "http://50.35.74.227/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 231, Name: "出入境管理大队", Address: "http://10.33.199.12/churujingguanlidadui/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 232, Name: "内保大队", Address: "http://10.33.199.12/neibaodadui/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 233, Name: "网安大队", Address: "http://50.35.9.160/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 234, Name: "交警大队", Address: "http://www.jt.jnx.nkg.js/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 235, Name: "看守所", Address: "http://10.33.99.225/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 236, Name: "法制大队", Address: "http://50.35.1.66/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 237, Name: "预审办案大队", Address: "http://50.35.251.118:8010/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 238, Name: "反恐怖大队", Address: "http://50.35.75.161/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 239, Name: "禁毒大队", Address: "http://50.35.1.9/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 240, Name: "江宁保安", Address: "http://10.33.199.219:8000/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 241, Name: "行政审批大队", Address: "http://50.35.1.123/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 242, Name: "食药环侦大队", Address: "http://50.35.1.190/", Status: 2, TabbarTypeId: 5})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 243, Name: "执法办案管理大队", Address: "http://50.35.251.118/", Status: 2, TabbarTypeId: 5})

	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 251, Name: "东山派出所", Address: "http://50.35.11.198/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 252, Name: "开发区派出所", Address: "http://www.kfq.jnx.nkg.js/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 253, Name: "高新区派出所", Address: "http://www.kxy.jnx.nkg.js/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 254, Name: "岔路派出所", Address: "http://50.35.25.188/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 255, Name: "九龙湖派出所", Address: "http://50.35.19.84/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 256, Name: "上坊派出所", Address: "http://50.35.17.70/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 257, Name: "东善桥派出所", Address: "http://10.33.199.12/dongshanqiao/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 258, Name: "秣陵派出所", Address: "http://10.33.199.12/moling/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 259, Name: "铜山派出所", Address: "http://10.33.199.12/tongshan/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 260, Name: "湖熟派出所", Address: "http://50.35.35.58/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 261, Name: "龙都派出所", Address: "http://50.35.57.45/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 262, Name: "淳化派出所", Address: "http://10.33.199.12/chunhua/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 263, Name: "土桥派出所", Address: "http://50.35.1.116/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 264, Name: "汤山派出所", Address: "http://50.35.31.88/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 270, Name: "麒麟派出所", Address: "http://50.35.21.99/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 271, Name: "上峰派出所", Address: "http://50.35.55.25/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 272, Name: "陶吴派出所", Address: "http://50.35.1.99/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 273, Name: "横溪派出所", Address: "http://10.33.199.12/hengxi/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 274, Name: "丹阳派出所", Address: "http://50.35.51.66/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 275, Name: "江宁派出所", Address: "http://10.33.199.12/jiangning/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 276, Name: "禄口派出所", Address: "http://50.35.23.52/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 277, Name: "陆郎派出所", Address: "http://10.33.199.12/lulang/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 278, Name: "谷里派出所", Address: "http://50.35.33.55/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 279, Name: "牛首山派出所", Address: "http://10.33.199.12/niushoushan/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 280, Name: "滨江开发区派出所", Address: "http://10.33.199.12/binjiang/", Status: 2, TabbarTypeId: 6})
	databases.DbDefault.FirstOrCreate(&models.Tabbar{Id: 281, Name: "周岗派出所", Address: "http://50.35.59.37/", Status: 2, TabbarTypeId: 6})
}
